package cs236369.webserver;

import java.util.HashMap;

public class Session implements ISession {

	private HashMap<String, Object> mHashMap;
	
	public Session() {
		mHashMap = new HashMap<String, Object>();
	}
	
	
	
	@Override
	public Object get(String name) {
		return mHashMap.get(name);
	}

	@Override
	public void invalidate() {
		mHashMap = new HashMap<String, Object>();

	}

	@Override
	public void set(String name, Object val) {
		mHashMap.put(name, val);

	}

}
